package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.sun.tracing.dtrace.ModuleAttributes;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.HashMap;
//联系手写的实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
    @TableId(type = IdType.AUTO)
    private Long bookId;
    @TableField("bookName")
    private String bookName;
    @TableField("bookCounts")
    private int bookCounts;
    @TableField("bookDetail")
    private String bookDetail;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //更新时间
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @Version
    private int version;

    @TableLogic//逻辑删除
    private Integer deleted;

}
